package com.ysfxt.result;

import lombok.Getter;

/**
 * @author 盐酸氟西汀
 * @create 2024/3/29 11:08
 * @email 480738950@qq.com
 */
@Getter
public enum ResultCodeEnum {
    
    SUCCESS(200,"成功"),
    FAIL(201, "失败"),
    SERVICE_ERROR(2012, "服务异常"),
    DATA_ERROR(204, "数据异常"),
    LOGIN_ERROR(2044, "认证失败"),
    LOGIN_AUTH(208, "未登陆"),
    SYSTEM_ERROR(9999 , "您的网络有问题请稍后重试"),
    PERMISSION(209, "没有权限");
    
    
    private Integer code;
    
    private String message;
    
    private ResultCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
